package com.fourth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fourth.vo.AppelVo;
import com.ljx.entity.Appeal;
import com.ljx.entity.BusinessInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;


import java.util.List;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: TODO
 * @date 2023/2/27
 */
@Mapper
public interface AppealDao extends BaseMapper<Appeal> {
    /**
     * 申诉处理表联表查询
     * @return
     */
    Page<Appeal> appealSelectAll(Page<Appeal> page,String businessId);

    /**
     * 通过ID将当前表状态 status = 1
     * @param
     * @return
     */
    int passAppeal(Integer id , Integer status);

    /**
     * 商家申诉信息添加
     * @return
     */
   int addAppealAll(@Param("appeal") Appeal appeal);

    /**
     * 根据ID改变申诉表中商家申诉状态
     * @param id
     * @param status
     * @return
     */
    int appealStatusId(Integer id , Integer status );
}
